package com.wnxy.carl.api;

import com.wnxy.carl.dto.OrderInfoDTO;
import com.wnxy.carl.param.PageParam;
import com.wnxy.carl.param.orderInfo.GenerateOrderInfoParam;
import com.wnxy.carl.response.EPage;
import com.wnxy.carl.response.Result;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "carlOrderServe",contextId = "OrderInfoApi",path = "order")
@Api(tags = "订单详情", description = "提供用户相关的 Order API")
public interface OrderInfoApi {

    @PostMapping("generateOrderInfo")//生成订单详情 Boolean
    public Result generateOrderInfo(@RequestBody GenerateOrderInfoParam orderInfoParam);

    @PostMapping("seeOrderInof")//查看订单详情 PageDTO<OrderInfoDTO>
    public Result<? extends EPage<OrderInfoDTO>> seeOrderInof(@RequestBody PageParam<Integer> pageParam);
}
